<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="../lib/vue.global.js"></script>
    <div id="app">
        <h2>当前的计数:{{count}}</h2>
        <button @click="add">+1</button>
        <button @click="del">-1</button>
    </div>
    <script>
               const app=Vue.createApp({
               data:function(){
                return{
                    title:"hello world",
                    message:"你好啊,vue3",
                    count:100
                }
            },
            methods: {
                add(){
                    this.count++
                },
                del(){
                    this.count--
                }
            },
        })
        app.mount("#app")
    </script>
</body>
</html>